package com.github.ecbp.store.service.dto;

import com.github.ecbp.common.req.BaseIdDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

/**
 * @Author Created by Alex·He on 2020/4/30 23:22
 * @Version V1.0
 * @Description: 商品SKU传递参数
 */
@Data
@ApiModel
public class ProductSkuDTO extends BaseIdDTO {

    private Long productId;

    /**
     * 商品货号
     */
    @ApiModelProperty(value = "商品货号")
    @NotEmpty
    private String productSn;

    /**
     * 商品价格
     */
    @ApiModelProperty(value = "商品价格")
    @NotEmpty
    private BigDecimal price;

    /**
     * 市场零售价
     */
    @ApiModelProperty(value = "市场零售价")
    private BigDecimal originalPrice;

    /**
     * 库存
     */
    @ApiModelProperty(value = "库存")
    @NotEmpty
    private Integer stock;

    /**
     * 预警库存
     */
    @ApiModelProperty(value = "预警库存")
    private Integer lowStock;

    /**
     * 销量
     */
    @ApiModelProperty(value = "销量")
    private Integer saleAmount;
}
